{template order_header.html}

<form class="form-horizontal" action="" method="post" id="myform" name="myform">
    <div class="page-bar">
        <div class="page-toolbar">
            <div class="btn-group pull-right">
                <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {L('操作菜单')}
                    <i class="fa fa-angle-down"></i>
                </button>
                <ul class="dropdown-menu pull-right" role="menu">
                    <li class="divider"> </li>
                    <li>
                        <a href="javascript:window.location.reload();">
                            <i class="icon-refresh"></i> {L('刷新页面')}</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <h3 class="page-title">
        <small>
            <label>{L('订单号')}：<a href="javascript:;" class="btn green btn-xs">{$order.sn}</a></label>
            {if $order.out_trade_no}<label>{L('商户订单')}：<a href="javascript:;" class="btn green btn-xs">{$order.out_trade_no}</a></label>{/if}&nbsp;
        </small>

    </h3>

    <div class="portlet light bordered ">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green">{L('基本信息')}</span>
            </div>
        </div>
        <div class="portlet-body">

            <div class="row" style="clear: both">
                <div class="col-md-6 col-sm-12">
                    <div class="portlet  box">
                        <div class="portlet-body">
                            <div class="row static-info">
                                <div class="col-md-3 name">{L('订单状态')}：</div>
                                <div class="col-md-9 value"> {dr_order_status($order)}</div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> {L('下单时间')}：</div>
                                <div class="col-md-9 value"> {dr_date($order.order_time)} </div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> {L('买家账号')}：</div>
                                <div class="col-md-9 value"> <a href="javascript:;" onclick="dr_dialog_member('{$order.buy_uid}')">{$order.buy_name}</a>  </div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> {L('商家账号')}：</div>
                                <div class="col-md-9 value"> <a href="javascript:;" onclick="dr_dialog_member('{$order.sell_uid}')">{$order.sell_name}</a> </div>
                            </div>
                        </div>
                    </div>
                </div>
               
                <div class="col-md-6 col-sm-12">
                    <div class="portlet box">
                        <div class="portlet-body">
                            <div class="row static-info">
                                <div class="col-md-3 name"> 订单金额： </div>
                                <div class="col-md-9 value"> ¥{number_format($order.price, 2)}元 </div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> 付款时间： </div>
                                <div class="col-md-9 value"> {if $order.pay_time}{dr_date($order.pay_time)}{else}未付款{/if} </div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> 支付方式： </div>
                                <div class="col-md-9 value"> {payType($order.pay_type)}  </div>
                            </div>
                        </div>
                    </div>
                </div>
                
            </div>

        </div>
    </div>


    <div class="portlet light bordered ">
        <div class="portlet-body">

            <table class="table ">
                <thead>
                <tr>
                    <th width="90"> </th>
                    <th> 名称 </th>
                    <th> 编号 </th>
                    <th width="350"> 价格 </th>
                    <th width="350"> 数量 </th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td>
                        <a target="_blank" ><img src="{dr_thumb($order.thumb, 50, 50)}" width="50"></a>
                    </td>
                    <td>
                        <a>{$order.title} </a>
                    </td>
                    <td>{$order.num}/{$order.total}</td>
                    <td> ¥{number_format($$order.price, 2)}</td>
                    <td> x1</td>
                </tr>

                </tbody>
            </table>
        </div>
    </div>
</form>
{template nfooter.html}